import Vue from 'vue'
import Vuex from 'vuex'
//引入插件
import createPersistedState from 'vuex-persistedstate'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
  },
  mutations: {
  },
  /* 配置插件，vuex数据持久化配置 */
  plugins: [
    createPersistedState({storage: window.localStorage})
  ]
})
